package com.tanker.common; 

public enum ErrorCode {
	//系统级
	SUCCESS("000000","success"), 
	//输入校验
	FAILED("000001","操作失败！");
	private String code;
	private String text;
	
	private ErrorCode(String code, String text) {
        this.code = code;   
        this.text = text;   
    }

	public String getCode() {
		return code;
	}

	private void setCode(String code) {
		this.code = code;
	}
	
	public String getText() {
		return text;
	}
	
	private void setText(String text) {  //throws CloneNotSupportedException 
		
		this.text = text;
//		System.out.println(this.getClass().getName());
//		System.out.println(this.clone());
//		return ErrorCode.SUCCESS;
	} 

	/*public Object setText(String text) {  //throws CloneNotSupportedException 
		
		this.text = text;
//		System.out.println(this.getClass().getName());
//		System.out.println(this.clone());
		return ErrorCode.SUCCESS;
	} */
	

}
